package com.yh.correct.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.yh.correct.model.Report;
/**
 * 
 * 服刑人员思想汇报情况登记Dao
 */
@Repository
public interface IReportMapper {
	/**
	 * 增加服刑人员思想汇报信息
	 * @param report
	 * @return
	 * @throws Exception
     */
	int addReport(Report report) throws Exception;

	/**
	 * 删除服刑人员思想汇报信息
	 * @param id
	 * @return
	 * @throws Exception
     */
	int delReport(int id) throws Exception;

	/**
	 * 批量删除思想汇报信息
	 * @param list
	 * @return
	 * @throws Exception
     */
	int deleteBatch(List<Integer> list) throws Exception;

	/**
	 * 修改服刑人员思想汇报信息
	 * @param report
	 * @return
	 * @throws Exception
     */
	int editReport(Report report) throws Exception;

	/**
	 * 根据Id查询单个思想汇报信息
	 * @param id
	 * @return
	 * @throws Exception
     */
	Map<String,Object> getIdReport(int id) throws Exception;

	/**
	 * 模糊查询思想汇报信息
	 * @param Report
	 * @return
	 * @throws Exception
     */
	List<Object> getListReport(Map<String, Object> Report) throws Exception;

	/**
	 * 模糊查询思想汇报总数
	 * @param Report
	 * @return
	 * @throws Exception
     */
	Integer getLikeReportCount(Map<String,Object> Report) throws Exception;
	/**
	 *@author Administrator
	 *@注释 : 查询思想汇报总数
     *	
     */
	List<Map<String,Object>> getAllReport() throws Exception;
}
